package com.huaxiafinance.management.model;

import java.util.Date;

public class SendMessage {
    private Integer id;

    private Integer messageModelId;

    private Date send_at;

    private String cellphone;

    private Date createdAt;

    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public SendMessage() {
    }

    public SendMessage(String cellphone, Integer messageModelId) {
        this.cellphone = cellphone;
        this.messageModelId = messageModelId;
        this.send_at = new Date();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMessageModelId() {
        return messageModelId;
    }

    public void setMessageModelId(Integer messageModelId) {
        this.messageModelId = messageModelId;
    }

    public Date getSend_at() {
        return send_at;
    }

    public void setSend_at(Date send_at) {
        this.send_at = send_at;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone == null ? null : cellphone.trim();
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
}